<div class="box_type02">
<h2 class="txt">회원탈퇴삭제내역</h2>
<p class="icon"><a href="javascript:void(0);" class="icon_m04">매뉴얼</a></p>
<script type="text/javascript">
//<![CDATA[        
	$.datepicker.setDefaults({
		dateFormat: 'yy-mm-dd'
	});


	$(function(){
		if(!$("[name=sch_reg_start]").val()) $("[name=sch_reg_start]").val("탈퇴일");
		$(".datepicker").datepicker();
		$(".btn_calendar").click(function(){
			var index = $(".btn_calendar").index($(this));
			$('.datepicker').eq(index).datepicker('show');	
		});	

		$("#frm-search").submit(function(){	
			var link = '/member/secedeList';
			if(!dateRegEx.test($("[name=sch_reg_start]").val())) $("[name=sch_reg_start]").val('');
			if($("[name=sch_reg_start]").val()) link += '/sch_reg_start/'+encodeURIComponent($("[name=sch_reg_start]").val());
			if($("[name=sch_reg_end]").val()) link += '/sch_reg_end/'+encodeURIComponent($("[name=sch_reg_end]").val());
			location.replace(link);
			return false;
		})
	});
//]]>
</script>
<table cellspacing="0" summary="회원탈퇴삭제내역" class="lines">
	<caption>회원탈퇴삭제내역</caption>
	<tbody>
	<tr>
		<th scope="row" class="tal bold"><p>탈퇴회원수</p></th>
		<td class="tal"><div><strong class="cff5400"><?php echo $count;?></strong> 명</div></td>
		<th scope="row" class="tal bold"><p>금일 탈퇴수</p></th>
		<td class="tal"><div><strong class="cff5400"><?php echo $today;?></strong> 명</div></td>
	</tr>
	<tr>
		<th scope="row" class="tal bold"><p>탈퇴통계</p></th>
		<td class="tal" colspan="3">
			<div>그래프가 들어갑니다.</div>
		</td>
	</tr>
	</tbody>
</table>

<!--[s] 검색 -->
<form name="frmSearch" id="frm-search">
	<fieldset class="search_type01 c_box">
		<legend>검색</legend>
		<input type="text" id="" name="sch_reg_start" class="ip datepicker" style="width:126px;" value="<?php echo $param['sch_reg_start'];?>" />
			<a href="javascript:void(0);" class="btn_calendar">달력보기</a>
			<span class="txt_type01">~</span>
			<input type="text" id="" name="sch_reg_end" class="ip datepicker" style="width:126px;" value="<?php echo $param['sch_reg_end'];?>" />
			<a href="javascript:void(0);" class="btn_calendar">달력보기</a>
			<input type="submit" class="btn_search_l ml6" title="검색" value="" />
	</fieldset>
</form>
<!--[e] 검색 -->

<!--[s] 목록 -->
<table cellspacing="0" summary="회원탈퇴삭제내역" class="lines">
	<caption>회원탈퇴삭제내역</caption>
	<thead>
	<tr>
		<th scope="col" width="56">No.</th>
		<th scope="col" width="132">아이디</th>
		<th scope="col" width="132">탈퇴일</th>
		<th scope="col">탈퇴사유</th>
		<!-- <th scope="col" width="62">설정</th> -->
	</tr>
	</thead>
	<tbody>
	<?php 
		foreach($rst as $row){	
	?>
	<tr>
		<th scope="row"><p><?php echo $list_no;?></p></th>
		<td><div><?php echo $row->user_id;?></div></td>
		<td><div><?php echo date('Y.m.d / H:i',mysqldatetime_to_timestamp($row->reg_date));?></div></td>
		<td class="tal"><div><?php echo $row->reason;?></div></td>
		<!-- <td>
			<div class="btn_type_i2">
				<button type="button" class="del">삭제</button>
				<button type="button" class="set">설정</button>
			</div>
		</td> -->
	</tr>
	<?php 
			$list_no--;
		}
	?>
	</tbody>
</table>
<!--[e] 목록 -->

<!--[s] 페이징 -->
<div class="paging_all c_box">
	<div class="paging">
		<?php echo $paging?>
	</div>
</div>
<!--[e] 페이징 -->

<!--[s] Tip -->
<dl id="tip" class="mt30">
	<dt>Tip</dt>
	<dd>인터넷익스플로러의 '호환성보기' 기능을 사용중인 접속자에게 자동으로 최신버전 기준으로 사이트를 출력하도록 처리합니다.</dd>
	<dd>코딩방식에 따라 특정 버전의 브라우저에서 사이트가 깨질수 있으니, 충분한 테스트 후 기능을 설정해 주시기 바랍니다.</dd>
</dl>
<!--[e] Tip -->
</div>